import fs from "fs";
import EolinkApiToTsType from "./sources/eolink-api-2-ts-type/index.js";
import { error } from "console";


EolinkApiToTsType().then(result => {
  fs.appendFile('model.ts', result, (err) => {
    if (err) throw err;
    console.log('The "data to append" was appended to file!');
  });
})
  .catch((msg) => {
    throw error(msg)

  })